package com.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface Car_MessageMapper {
    @Select("select * from car_message")
    List<Map<String,Object>> selectCarMessage();

    @Select("select load_m,load_v from car_message where car_id = #{car_id}")
    Map<String,Object> getCarMessage(@Param("car_id") int car_id);
    @Select("select load_m from car_message where car_id = #{car_id}")
    double selectLoad(@Param("car_id") int car_id);
}
